Download and Configure Service Layer

1. Download the domain binaries as mentioned in the Pre-requisites section of this document.

2. Once downloaded, you can define the following environment variables at docker run time using the -e option in the command line or define them in the sl_env.dat file, which is the Service Layer environment configuration file.

The environment configuration variables, that need to be set for the Weblogic admin server, managed servers and application configuration are defined below:

environment configuration variables
Configuration Parameter Variables
Weblogic Admin Server Hostname ADMIN_HOST
Application Domain Name APP_DOMAIN_NAME
WebLogic Admin Server Port ADMIN_PORT
Coherence Cluster Name CLUSTER_NAME
WebLogic Admin Server Password ADMIN_PASSWORD
Data Source Name DSNAME
DataSourceJNDI Name DSJNDINAME
Data Source Database Name DSDBNAME
Database Driver Class DSDRIVER
Database Connection URL DSURL
Data Source SQL Test Query DSTESTQUERY
Data Source Maximum Capacity DSMAXCAPACITY
READ-ONLY Data Source Name SL_DSNAME
READ-ONLY Data Source JNDI Name SL_DSJNDINAME
Database Username SL_DSUSERNAME
Database Password SL_DSPASSWORD
Service Layer Application Name SERVICE_APP_NAME
Application Machine Name APP_MACHINE_NAME
Application Managed Server Name APP_MSERVER_NAME
Application Managed Server Port APP_MSERVER_PORT
Application Machine Port APP_MACHINE_PORT
WebLogic Debug Port DEBUG_PORT
External Library Path EXT_LIB_PATH
ATP Compatibility ATP_COMPLIANT
Spring JAR Name SPRING_JAR

DSDRIVER : Provide the Database driver based on the database used.

ORACLE : oracle.jdbc.driver.OracleDriver

DB2 : com.ibm.db2.jcc.DB2Driver

MSSQL : com.microsoft.sqlserver.jdbc.SQLServerDriver

DSURL: Provide the DataSource Connection URL based on the Database selected.

ORACLE: jdbc:oracle:thin:@//hostname:port/ServiceName

DB2 : jdbc:db2://hostname:port/DatabaseName

MSSQL : jdbc:sqlserver://hostname:port;databaseName=DatabaseName

Example: For SQL Server

When the encrypt property is set to true and the trustServerCertificate property is set to true, the Microsoft JDBC Driver for SQL Server won't validate the SQL Server TLS certificate. This setting is common for allowing connections in test environments, such as where the SQL Server instance has only a self-signed certificate.

jdbcUrl = jdbc:sqlserver://<host>:<port>;DatabaseName=<databasename>;encrypt=true;trustServerCertificate=true

ATP : jdbc:oracle:thin:@WALLET_DBNAME?TNS_ADMIN=/u01/oracle/externallibs/shared/atp/wallet/

Autonomous Transaction Processing Database (ATP) Variables
Parameters Variables Examples
Wallet Location WALLET /u01/oracle/externallibs/shared/atp/wallet
SSL Version SSL_VERSION 1.2
Keystore Type KEYSTORE_TYPE JKS
Keystore Password KEYSTORE_PASSWORD KeyStore_Password
Truststore Type TRUSTSTORE_TYPE JKS
Truststore Password TRUSTSTORE_PASSWORD TrueStore_Password
Fan Enable FAN_ENABLED false
SSL Server DN SSL_SERVER_DN_MATCH true

 

Note:  
1. The ATP_COMPLIANT variable denotes whether the application is in compliant with ATP or not. Choose the appropriate option before provisioning the environment.
2. Refer to the sl_env.dat file for more information regarding these variables.